import { createWebHistory, createRouter ,RouteRecordRaw } from 'vue-router'

import HomeView from '../view/home.vue'
import AboutView from '../view/about.vue'

const routes:RouteRecordRaw[] = [
  { path: '/', redirect: '/home' },
  { path: '/home' , component: HomeView },
  { path: '/about', component: AboutView },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router